package com.flyqiu.flow.model.entity;

import com.alibaba.fastjson2.JSONObject;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.flyqiu.common.mybaits.plus.type.MyBaitsFastJson2ObjectHandler;
import com.flyqiu.flow.model.entity.base.FlowBaseDao;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName(ProcModelSource.TABLE_NAME)
public class ProcModelSource extends FlowBaseDao {
    public static final String TABLE_NAME = "FLY_FLOW_GE_MODEL_SOURCE";

    @TableField(value = "MODEL_SOURCE_", typeHandler = MyBaitsFastJson2ObjectHandler.class)
    private JSONObject modelSource;

    @TableField("MODEL_KEY_")
    private String modelKey;

    @TableField("TENANT_ID_")
    private String tenantId;

    @TableField("CREATE_TIME_")
    private LocalDateTime createTime;
}
